import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'HELLO FLUTTER',
      home: Scaffold(
        appBar: AppBar(
          title: const Text('IMAGE WIDGET'),
        ),
        body: Center(
          child: Container(
            width: 300.0,
            height: 200.0,
            color: Colors.greenAccent,
            child: Image.network(
              'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg2.hx2car.com%2F78aeead0-9800-3cef-9606-8ae2a323fe5f_small_800_600.jpg&refer=http%3A%2F%2Fimg2.hx2car.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1642844030&t=849167b6639bd1e0d5439b7b514d5f1b',
              scale: 1.0,
//            // 填充模式 contain/fill/cover/fitWidth
              fit: BoxFit.cover,
              color: Colors.cyanAccent,
              // 图色混合  color/colorBurn/colorDodge/darken/difference/dst/...
              colorBlendMode: BlendMode.colorBurn,
              // 重复  noRepeat(默认)/repeat/repeatX/repeatY
              repeat: ImageRepeat.repeat,
            ),
          )

        )
      ),
    );
  }
}